/*
 * Copyright (c) 2001-2023 cnstrong.cn Corporation Limited. All rights reserved.
 * This software is the confidential and proprietary information of cnstrong.cn Company.
 * ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with cnstrong.cn.
 */
package com.tree.config;

import java.util.Optional;

/**
 * ConfigTreeService
 *
 * @author Braveheart
 * @version V1.0
 * @since 2023-12-28
 */
public interface ConfigTreeService {

    /**
     * 获取配置（对象）
     * 可以转换Integer、Long、Double、Float、String类型
     * 可以解析数组、List、Map和基本类型
     *
     * @param bizId 可空；可以传业务参数比较source、serviceCode、doctorUserId或自定义拼接字符串
     * @param clz
     * @param <T>
     * @return
     */
    <T> Optional<T> get(Object bizId, Class<T> clz);

}
